package com.jkc.xh.adapters;

import android.view.ViewGroup;

import com.jkc.xh.adapters.core.BaseRecyclerAdapter;
import com.jkc.xh.adapters.viewholder.BussinessItemView;
import com.jkc.xh.adapters.viewholder.BussinessItemView_;
import com.jkc.xh.models.BussinessModel;

/**
 * Created by macintosh on 15/11/17.
 */
public class TodayBussinessAdapter extends BaseRecyclerAdapter<BussinessModel, BussinessItemView> {
    @Override
    protected BussinessItemView onCreateItemView(ViewGroup parent, int viewType) {
        return BussinessItemView_.build(parent.getContext());
    }

    @Override
    protected void onBindView(BussinessItemView itemView, BussinessModel orderModel, int position) {
        itemView.bind(orderModel);
    }
}
